<template>
  <div>
    <myheader/>
    <p>手机号：{{ tname }}</p>
    <p>用户名：{{ username }}</p>

  </div>
</template>
<script>
import myheader from '@/components/myheader'

export default {
  name: "userinfo",
  data() {
    return {
      myheader: myheader,
      username: localStorage.getItem('username'),
      tname: localStorage.getItem('tname')
    }
  },

  methods: {
    getUserinfo() {

    }
  },

  mounted() {
    this.getUserinfo()
  },
  components: {
    'myheader': myheader
  }
}
</script>

<style scoped>

</style>